/**
 * @Description:
 * @Author: CHEHSHUANG
 * @Date: 2019/3/14
 */
import React, {Component} from 'react';
import {Tabs} from "antd";
import BaseInfo from "./component/BaseInfo";
import AccountInfo from "./component/AccountInfo";
import PositionInfo from "./component/PositionInfo";
import PayInfo from "./component/PayInfo";
import EmailInfo from "./component/EmailInfo";
import {getUserId} from "../../commons/utils/CommonUtils";
const {TabPane} = Tabs;
class Index extends Component {
  render() {
    const userId = getUserId();
    return (
      <Tabs
        defaultActiveKey="1"
        style={{padding: 20,height: "100%",overflow: "auto"}}
        tabPosition={"left"}
      >
        <TabPane tab="基本信息" key="1">
          <BaseInfo userId={userId}/>
        </TabPane>
        <TabPane tab="账号信息" key="2">
          <AccountInfo userId={userId}/>
        </TabPane>
        <TabPane tab="岗位信息" key="3">
          <PositionInfo userId={userId}/>
        </TabPane>
        <TabPane tab="支付信息" key="4">
          <PayInfo userId={userId}/>
        </TabPane>
        <TabPane tab="邮件提醒" key="5">
          <EmailInfo userId={userId}/>
        </TabPane>
      </Tabs>
    );
  }
}

export default Index;
